<?

function smarty_function_label( $params, $smarty ) {

	$smarty->depend( 'modifier', 'escape' );

	$for = Smutty_Smarty::getFieldName( $params['for'] );
	$text = smarty_modifier_escape( $params['text'] );

	echo '<label for="' . $for . '">' . $text . '</label>';

}

?>